yarn install
echo "\033[43;37m Judging the node process is running or not... \033[0m"
pid=$(lsof -i:3000 | awk '{print $2}')  

if test -z "${pid}"
then
    echo "\033[42;37m The node process is not running ！\033[0m"
    echo "\033[42;37m Starting node process... \033[0m"
    #yarn build
    nohup yarn start &
else
    echo "\033[44;37m  The node process is running on "${pid}" ！\033[0m"
    echo "\033[44;37m building node process... \033[0m"
    #yarn build
    kill -9 ${pid}
    nohup yarn start &
fi